<div class="content-wrapper">
    <?php
    $form = $this->form;
    $form->prepare();
    ?>
    <?php echo $this->form()->openTag($form); ?>
    <section class="content-header">
        <?php echo $this->partial('layout/breadcrumb'); ?>

        <h1 class="pull-right" id="dbshop-menu-top">
            <a href="<?php echo $this->url('user-balance', ['action' => 'withdrawList']);?>" class="btn btn-default btn-sm"><i class="fa fa-arrow-left"></i> <?php echo $this->translate('返回提现列表'); ?></a>
            <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-check"></i> <?php echo $this->translate('保存提现处理'); ?></button>
            <?php echo $this->HelpUrl('userWithdrawList'); ?>
        </h1>
    </section>

    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header with-border">
                        <h3 class="box-title"><?php echo $this->translate('提现审核'); ?></h3>
                    </div>

                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('申请人'); ?></label>
                            <div class="col-sm-3">
                                <p class="form-control-static"><?php echo $this->escapeHtml($this->withdrawInfo->getUserName()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('客户当前余额'); ?></label>
                            <div class="col-sm-3">
                                <p class="form-control-static"><?php echo $this->shopCurrencyFormat($this->userInfo->getUserMoney()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('申请提现金额'); ?></label>
                            <div class="col-sm-3">
                                <p class="form-control-static"><?php echo $this->shopCurrencyFormat($this->withdrawInfo->getMoneyChangeNum(), null, $this->withdrawInfo->getCurrencyCode()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('支付名称/开户银行'); ?></label>
                            <div class="col-sm-8">
                                <p class="form-control-static"><?php echo $this->escapeHtml($this->withdrawInfo->getBankName()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('账户名称/开户名称'); ?></label>
                            <div class="col-sm-8">
                                <p class="form-control-static"><?php echo $this->escapeHtml($this->withdrawInfo->getBankAccount()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('账号/卡号'); ?></label>
                            <div class="col-sm-8">
                                <p class="form-control-static"><?php echo $this->escapeHtml($this->withdrawInfo->getBankCardNumber()); ?></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('审核状态'); ?><span class="must_add_value">*</span></label>
                            <div class="col-sm-2">
                                <?php echo $this->formElement($form->get('withdrawState')); ?>
                                <?php echo $this->formElementErrors($form->get('withdrawState'), ['class'=>'error-message']); ?>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label"><?php echo $this->translate('备注'); ?><span class="must_add_value">*</span></label>
                            <div class="col-sm-8">
                                <?php echo $this->formElement($form->get('withdrawInfo')); ?>
                                <?php echo $this->formElementErrors($form->get('withdrawInfo'), ['class'=>'error-message']); ?>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

    </section>
    <?php echo $this->form()->closeTag(); ?>

</div>
<script>
    $(document).ready(function() {
        $("#<?php echo $form->getName(); ?>").validate({
            rules: {
                withdrawInfo: {
                    required: true
                }
            },
            messages: {
                withdrawInfo: {
                    required: "<?php echo $this->translate('备注不能为空!'); ?>"
                }
            }
        });
    });
</script>
